import { BaseEntity } from '@cool-midway/core';
import { Column, Entity } from 'typeorm';

/**
 * 关注
 */
@Entity('app_follows')
export class FollowsEntity extends BaseEntity {
    @Column({ comment: '关注类型 0:圈子 1:用户', type: 'tinyint' })
    type: number;

    @Column({ comment: '用户ID', type: 'int' })
    userId: number;

    @Column({ comment: '关注ID', type: 'int' })
    followId: number;
}
